package com.siyuanren.gcocp.dto;

import com.siyuanren.gcocp.common.config.PublicConfig;
import com.siyuanren.gcocp.dto.wx.WxUserVoucherDTO;
import com.siyuanren.gcocp.entity.WxActive;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.dto
 * Date         2018/6/12
 * Time         16:04
 * Description 课程活动页面dto
 */
@Setter
@Getter
public class ActiveInviteDTO extends WxActive {
    private Integer courseId;
    private String courseName;
    /**
     * 活动剩余时间,单位秒
     */
    private long restTime;

    /**
     * 是否参加了这个活动
     */
    private boolean isJoined;

    /**
     * 完成活动的人数
     */
    private int activeSucessCount;

    /**
     * 活动是否在进行中
     */
    private boolean inProgress;

    /**
     * 已邀请的用户
     */
    private List<WxUserVoucherDTO> playerList;

    public String getBannerImg() {
        return PublicConfig.RESOURCE_URL + super.getBannerImg();
    }
    public String getBackgroundImg() {
        return PublicConfig.RESOURCE_URL + super.getBackgroundImg();
    }
    public String getSponsorVoucherImg() {
        return PublicConfig.RESOURCE_URL + super.getSponsorVoucherImg();
    }
    public String getSponsorVoucherDetailImg() {
        return PublicConfig.RESOURCE_URL + super.getSponsorVoucherDetailImg();
    }
}
